package com.pzb.wechat.domain;

import com.pzb.goods.domain.GdFreightTemplateData;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
import java.util.Date;

/**
 * 购物车对象 wechat_shopping_cart
 * 
 * @author Mr_Wu
 * @date 2022-01-19
 */
public class WechatShoppingCart implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** 用户id */
    private String openid;

    /** 商品ID */
    private Long goodsId;

    private Long classId;

    private String goodsName;

    private String picturePath;

    private String price;

    private Long goodsUnitId;
    /** 商品规格 */
    private String goodsUnit;

    private Integer stock;

    /** 商品数量 */
    private Integer number;

    private Date createTime;

    /** 快递费模板 */
    private GdFreightTemplateData freightTemplate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Long getGoodsUnitId() {
        return goodsUnitId;
    }

    public void setGoodsUnitId(Long goodsUnitId) {
        this.goodsUnitId = goodsUnitId;
    }

    public void setGoodsUnit(String goodsUnit)
    {
        this.goodsUnit = goodsUnit;
    }

    public String getGoodsUnit() 
    {
        return goodsUnit;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public void setNumber(Integer number)
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public GdFreightTemplateData getFreightTemplate() {
        return freightTemplate;
    }

    public void setFreightTemplate(GdFreightTemplateData freightTemplate) {
        this.freightTemplate = freightTemplate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("openid", getOpenid())
            .append("goodsId", getGoodsId())
            .append("goodsUnit", getGoodsUnit())
            .append("number", getNumber())
            .append("createTime", getCreateTime())
            .toString();
    }
}
